Skip to content

add extern "C" wrappers to prism.h when using C++#3934

Merged
kddnewton merged 1 commit into
ruby:mainfrom
froydnj:froydnj-cplusplus-includes
Feb 18, 2026
Merged

add extern "C" wrappers to prism.h when using C++#3934
kddnewton merged 1 commit into
ruby:mainfrom
froydnj:froydnj-cplusplus-includes

Conversation

@froydnj

@froydnj froydnj commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

The Prism integration for Sorbet has a non-trivial number of #include "prism.h" that need to be wrapped in extern "C". Usually the library's headers take care of this wrapping, which is what this PR implements.

(Sorbet has one #include of a non-prism.h file, but I don't think it's worth wrapping every individual header, and the lone instance in Sorbet is easy to change to a different header.)

@kddnewton
kddnewton merged commit 003ff53 into ruby:main Feb 18, 2026
67 checks passed
@froydnj
froydnj deleted the froydnj-cplusplus-includes branch February 24, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants